#include <iostream>
#include <cstdlib>
#include <fstream>
#include <string>
#include <list>
#include <vector>

using namespace std;


class Ware
{
    int _day;
    string _type;
    int _quantity;
public:
    Ware(int d, string t, int q) : _day(d), _type(t), _quantity(q) {}

    int GetDay() const {return _day;}
    string GetType() const {return _type;}
    int GetQuantity() const {return _quantity;}

    void ChangeQuantity(int q) {_quantity -= q;}
};

int main()
{
    ifstream inp("i.txt");

    list<Ware*> _ware;
    int n; inp >> n;
    for(int i=0; i<n; ++i)
    {
        string tmp;
        getline(inp, tmp, '#');
        int d = atoi(tmp.c_str());
        string t;
        getline(inp, t, '#');
        getline(inp, tmp, '#');
        int q = atoi(tmp.c_str());
        getline(inp, tmp, '#');
        getline(inp, tmp, '#');

        _ware.push_back(new Ware(d, t, q));
    }

    /*
    for(list<Ware*>::const_iterator it = _ware.begin(); it != _ware.end(); ++it)
    {
        cout << (*it)->GetType() << " " << (*it)->GetQuantity() << endl;
    }*/

    vector<int> _robot_details;
    fstream inp2("r.txt");
    int data;
    while(inp2 >> data)
    {
        _robot_details.push_back(data);
    }

    return 0;
}
